cmake_minimum_required(VERSION 3.5)
project(webrtc_aec3 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include(predefined.cmake)

include_directories(./
)

add_subdirectory(absl)
add_subdirectory(api)
add_subdirectory(common_audio)
add_subdirectory(modules)
add_subdirectory(rtc_base)
add_subdirectory(system_wrappers)
add_subdirectory(third_party)

aux_source_directory(./ SRC_LIST)

add_library(${PROJECT_NAME} SHARED ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} 
                    webrtc_audio_processing
                    webrtc_common_audio 
                    webrtc_api 
                    webrtc_base
                    webrtc_sw
                    pffft
                    rnnoise
                    absl 
)
